<%-- 
    Document   : editsupplier
    Created on : Jul 6, 2012, 9:47:18 AM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>  
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){
              
          
            validateform("form-input-customer");
        });

    </script>
    <style type="text/css">
        .bg_department{
            height: 68 !important;
        }

        .field_normal{            
            width:100%; 
        }
        .field_pink{
            background-color: #D1E1F1; 

        }
        .fields_input{
            margin-top: 0px !important;
        }
        .form_item_content{
            margin-left: 0px !important;
        }
    </style>
    <f:view>
        <a4j:form id="form-input-customer" >
            <body style=" float:left; width:auto; height:auto; margin:0px;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

                <div class="popup" style="height:330px; width:465px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="#{locale.update_partner}"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content" style="margin-top:5px">



                                <div class="item_content" style="display:block">
                                    <div  class="field_normal" style="height:55px; margin-top: 2px">
                                        <div class="fields_input">
                                            <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.name_partner}"/> <span>*</span></label>
                                            <h:inputText value="#{k100partnerController.KV103}" styleClass="required" id="cusname" style="width:399px;margin-left:25px;" />

                                        </div>
                                    </div>
                                    <div class="field_pink" style="height:60px; " >
                                        <div class="fields_input" style="margin-top:17px;">
                                            <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.code_partner}"/></label>
                                            <label style="text-align:left; float: right;margin-right: 71px; "><h:outputText value="#{locale.career}"/></label>

                                        </div>
                                        <div class="fields_input" style="margin-top:2px; ">

                                            <h:inputText value="#{k100partnerController.KV105}" id="code"  style="width:150px;margin-left:25px;" />
                                            <h:selectOneMenu id="comboboxn550" value="#{k100partnerController.FN550}"  styleClass="combobox" style="width:150px; float: right;margin-right: 41px;">
                                                <%-- <f:selectItems value="#{k100partnerController.combN550}"></f:selectItems> --%>
                                                <f:selectItems value="#{k100partnerController.listSelectItems}" />
                                            </h:selectOneMenu>
                                            <h:inputHidden id="pnPK100" value="#{k100partnerController.PK100}"/>
                                            <h:inputHidden id="pnKV102" value="#{k100partnerController.KV102}" />
                                            <%--  <h:inputHidden id="pnKV110" value="#{k100partnerController.KV110}" /> --%>
                                        </div>
                                    </div>
                                    <%--
                               <div class="bg_department">

                                        <div class="fields_input  <h:outputText value='#{k100partnerController.FN850}'/>">
                                            <label><h:outputText value="#{locale.department}"/>:</label>
                                            <h:selectOneMenu  styleClass="combobox"  id="cmbNv113" value="#{k100Controller.FN850}" >
                                                <f:selectItems value="#{k100Controller.combN850}" />
                                                <a4j:support event="onchange" actionListener="#{k100Controller.changeCombN850forN900}"
                                                             reRender="nv113" />
                                            </h:selectOneMenu>
                                        </div>

                                        <div class="fields_input <h:outputText value='#{k100partnerController.KV104}'/>">
                                            <label><h:outputText value="#{locale.emp_intro}"/>:</label>&nbsp;
                                            <h:selectOneMenu id="nv113" value="#{k100Controller.KV104}"  styleClass="combobox">
                                                <f:selectItems value="#{k100Controller.combN900}"></f:selectItems>
                                            </h:selectOneMenu>
                                        </div>
                                        
                                    </div> 
                                    --%>
                                    <div  class="field_normal" style="height:55px; margin-top: 2px">
                                        <div class="fields_input" style="margin-top:3px;">
                                            <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.description}"/> </label>
                                            <h:inputTextarea value="#{k100partnerController.KV101}" style="height:70px; width:399px; margin-left:25px" ></h:inputTextarea>

                                        </div>
                                    </div>
                                    <div class="alert"></div>
                                </div>

                            </div>
                        </div>

                    </div>

                    <div class="popup-footer">

                        <div class="buttonsave" onclick="parent.jQuery.fancybox.close(); " style="margin-right:31px;"  ><span><h:outputText value="#{locale.button_close}"/></span></div>
                        <h:commandButton   onclick="return validatecheck('form-input-customer');"  action="#{k100partnerController.saveK100}" value="#{locale.button_save}" styleClass="buttonsave">

                        </h:commandButton>


                    </div>

                </div>          
            </body>
        </a4j:form>
    </f:view>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>
